home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / RoboSamSlot / HalfGateway.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  1.2 KB  |  68 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        HalfGateway.cp
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Tim Harnett
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     2/15/95    TMH        added GetSlot(slotCID)
  13.          <1>     9/20/94    TMH        Abandon RoadsideRest embrace Mercury
  14.                  3/29/94    TMH        xxx put comment here xxx
  15.  
  16.     To Do:
  17. */
  18.  
  19.  
  20. #ifndef __HalfGateway__
  21. #define __HalfGateway__
  22.  
  23. #ifndef __OCE__
  24. #include <OCE.h>
  25. #endif
  26.  
  27. #ifndef __OCEMAIL__
  28. #include <OCEMail.h>
  29. #endif
  30.  
  31. class TMSAMSlot;
  32. class TLetter;
  33. struct FGSlotInfoRec;
  34.  
  35. const long kMaxSlots = 4;
  36.  
  37. //--------------------------------------
  38. //        T A O C E H a l f G a t e w a y
  39. //--------------------------------------
  40.  
  41.  
  42. class TAOCEHalfGateway  {
  43. public:
  44.                     TAOCEHalfGateway();
  45.  
  46.  
  47.         // Slot Managment
  48.         
  49.     OSErr             SetupSlots(CreationID msamRecordCID);
  50.     static pascal OSErr    BuildSlotListCallBack(long clientData, const AttributePtr attrValue);
  51.         
  52.     TMSAMSlot*  FocSlot(CreationID msamRecordCID);
  53.     void        AddSlot(TMSAMSlot* msamSlot);
  54.     TMSAMSlot*    GetSlot(short slotID);                    
  55.     TMSAMSlot*    GetSlot(CreationID slotRecordCID);                    
  56.     
  57. private:
  58.  
  59.     CRecordID*        fMSAMRecord;
  60.     short            fNumberOfSlots;
  61.     TMSAMSlot*        fSlotList[kMaxSlots];
  62. };
  63.  
  64.  
  65.  
  66. #endif __HalfGateway__
  67.  
  68.